<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function pow(num, times) {
            if(times === 1){
                return num;
            }
            return num * pow(num,times-1);
        }
        // console.log(pow(3,3));
        arr =[1,2,3,42,1,2];
        var c =arr.reduce((a,b)=>a+b,0);
        console.log(c);
        if (arr.reduce((a,b) => a+b),0 == arr.length*arr[0]){

            return  arr;
        }
    </script>
</head>
<body>

</body>
</html>